<div heading="添加分类">
          <div class="panel-body">
            <form name="form1" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
              <div class="form-group">
                <label class="col-lg-2 control-label">分类名称:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.title">
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">上级分类:</label>
                <div class="col-lg-4">
                  <ui-select ng-model="obj.pid" theme="bootstrap" ng-change="change(obj.pid)">
                    <ui-select-match placeholder="选择上级分类..">{{$select.selected.title}}</ui-select-match>
                    <ui-select-choices repeat="item.id as item in pid_list | filter: $select.search">
                      <span ng-bind-html="item.title | highlight: $select.search"></span>
                    </ui-select-choices>
                  </ui-select>
                  
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">类型:</label>
                <div class="col-lg-4">
                  <ui-select ng-model="obj.type" theme="bootstrap">
                    <ui-select-match placeholder="选择类型..">{{$select.selected.title}}</ui-select-match>
                    <ui-select-choices repeat="item.id as item in dicc_list | filter: $select.search">
                      <span ng-bind-html="item.title | highlight: $select.search"></span>
                    </ui-select-choices>
                  </ui-select>
                </div>
              </div>
              <div class="form-group">
                <label class="col-lg-2 control-label">排序:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.sort">
                </div>
              </div>
              <!--<div class="form-group">
                <label class="col-lg-2 control-label">其他字段:</label>
                <div class="col-lg-4">
                  <input type="text" class="form-control" placeholder="必填" ng-model="obj.data">
                </div>
              </div>-->
            </form>

            <div class="col-lg-2"></div>
            <div class="col-lg-3">
              <button class="btn btn-primary btn-rounded" ng-click="save()">添加</button>
              <button class="btn btn-default btn-rounded" ng-click="cancel()">取消</button>
            </div>
          </div>
</div>


